package com.lankystar.logistucs.spring.entity;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 二级订单与状态关系表
 * @author SYX
 *
 */
@Entity
@Table(name="twoOrderAndtwoStatus")
public class TwoOrderAndTwoStatus {

	private int id;
	private TwoOrder twoOrder;
	private TwoStatus twoStatus;
	private long createTime;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@ManyToOne
	@JoinColumn(name="twoOrder_Id")
	public TwoOrder getTwoOrder() {
		return twoOrder;
	}
	public void setTwoOrder(TwoOrder twoOrder) {
		this.twoOrder = twoOrder;
	}
	@ManyToOne
	@JoinColumn(name="twoStatus_Id")
	public TwoStatus getTwoStatus() {
		return twoStatus;
	}
	public void setTwoStatus(TwoStatus twoStatus) {
		this.twoStatus = twoStatus;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
	
}
